package com.hamster.crmpre;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

/**
 * @author Tarry
 * @create 2019/12/21 9:00
 */
@SpringBootApplication
@MapperScan("com.hamster.crmpre.mapper")
@EnableScheduling
public class CrmPreApplication {
    public static void main(String[] args) {
        SpringApplication.run(CrmPreApplication.class,args);
    }

    @Bean
    public RestTemplate rest(){
        return new RestTemplate();
    }
}
